//------------------------------------------------------------------------------
// ThanhLNY
//------------------------------------------------------------------------------

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System;
using System.Collections.Generic;

namespace VietTrips.Domain.Models
{
    [Table("Activity")]
    public partial class Activity
    {
        public Activity()
        {
            ActivityDetails = new HashSet<ActivityDetail>();
            ActivityTypes = new HashSet<ActivityType>();
        }

        public int ActivityId { get; set; }

        [ForeignKey("Place")]
        public int? PlaceId { get; set; }

        public int? HotelId { get; set; }

        public int? AuthorId { get; set; }

        [Required]
        [StringLength(50)]
        public string ActivityName { get; set; }

        [ForeignKey("Image")]
        public int? FeaturedImageId { get; set; }

        [StringLength(1000)]
        public string Description { get; set; }

        public bool Publicity { get; set; }

        public DateTime LastModified { get; set; }

        public bool IsDeleted { get; set; }

        public virtual Image Image { get; set; }

        public virtual Place Place { get; set; }

        public virtual ICollection<ActivityDetail> ActivityDetails { get; set; }

        public virtual ICollection<ActivityType> ActivityTypes { get; set; }
    }
}
